package com.guangaiboen.attendance.core.dispatcher.executor;

import org.apache.http.entity.ContentType;
import org.apache.http.message.BasicNameValuePair;

/**
 * webservice执行器
 * @param <T>
 */
public abstract class XOPHttpDispatcherExecutor<T> extends XMLHttpDispatcherExecutor<T> {

    private static final String CONTENT_TYPE = "application/xop+xml";

    protected ContentType getContentType(){
        return ContentType.create(CONTENT_TYPE,new BasicNameValuePair("type","text/xml"),new BasicNameValuePair("charset",getCharset().name()));
    }
}
